package com.hikvision.rpq.sblearn;

import com.hikvision.rpq.sblearn.entity.User;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author renpeiqian
 * @date 2021/9/27 10:28
 * @since
 */
//@Component
public class UserFactoryBean implements FactoryBean<User> {


    @Override
    public User getObject() throws Exception {
        User user = new User();
        user.setUsername("testFactoryBean");
        user.setPassword("test");
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
